@extends('layouts.adminLayouts')

@section('mainContent')
    <div class="box">
        <div class="box-header">
            <h3 class="box-title">附加权限
                <small>{{$info->name}}</small>
            </h3>
        </div>

        <form action="" method="post">
            <div class="box-body">
                @forelse($permussion as $row)
                    <label class="checkbox-inline">
                        <input name="data[pms][]" type="checkbox" value="{{$row->id}}"
                               @if(in_array($row->id,$infopms)) checked @endif>{{$row->name}}
                    </label>
                @empty
                    暂无数据
                @endforelse
            </div>
            <div class="box-footer">
                {{csrf_field()}}
                <div class="col-md-4">
                    <div class="btn-group pull-left">
                        <button class="btn btn-default">提交</button>
                    </div>
                    <div class="btn-group pull-right">
                        <button type="reset" class="btn btn-default" onclick="history.go(-1);">取消</button>
                    </div>
                </div>
            </div>
        </form>

    </div>
@endsection